package com.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "ProductCategory",description = "餐饮类别实体")
@TableName(value = "product_category")
public class ProductCategory {
    @ApiModelProperty(value = "餐饮类别ID",required = true,example = "1")
    @TableId(value = "category_id",type = IdType.AUTO)//主键 自动增长
    private int categoryId;
    @ApiModelProperty(value = "餐饮类别名字",required = true,example = "老酸奶")
    @TableField(value = "category_name")//可以省略
    private String categoryName;
    @TableField(value = "category_type")
    @ApiModelProperty(value = "餐饮编号",required = true,example = "1")
    private String categoryType;
    @ApiModelProperty(value = "创建时间",required = true,example = "2025-8-11")
    private String createTime;
    @ApiModelProperty(value = "修改时间",required = true,example = "2025-8-11")
    private String updateTime;
    @ApiModelProperty(value = "是否删除",required = true,example = "0")
    private int del;

    public ProductCategory(int categoryId, int del) {
        this.categoryId = categoryId;
        this.del = del;
    }
}
